{% extends "base.html" %}

{% block title %}Login{% endblock title %}

{% block body %}
<h2>Login</h2>
<form method="post" action="?next={{ next|default:"/mainview/" }}">{% csrf_token %}
	<table>
	{{ form.as_table }}
	</table>
<p>
	<input type="submit" value="Submit" />
</p>
</form>
<p>If you don't have an account, you can <a href="/accounts/register/">sign up</a> for one.
{% endblock body %}
